<?php

  //  include_once 'includes/session.php';
    include_once 'includes/constants.php';
    include_once 'includes/functions.php';

    $partners = new partners;
    $partners->connection($host,$user,$pass,$db);
?>

<form name="langform" action="" method="post">

        <?
		//get all languages
		$sqllang = "select * from partners_languages where languages_status = 'active'";
		$reslang = mysql_query($sqllang);
        if(mysql_num_rows($reslang)>0)
        {
		?>

        <?=$lang_language?> : 
        <select name="languageid" onchange="javascript:langform.submit();">

          <?
		while($rowlang = mysql_fetch_object($reslang))
		{
			$langsel = "";
			if($language==$rowlang->languages_id) $langsel = "selected = 'selected'";
         ?>

          <option value="<?=$rowlang->languages_id?>" <?=$langsel?>><?=stripslashes($rowlang->languages_name)?>
          </option>
         <?
		}
    	?>
        </select>
        <?
		}
        ?>

  </form>
